export const handle_basic_xy_data = (data, field_x, field_y) => {
    let x_data = []
    let y_data = []
    try {
        for (let i = 0; i < data.length; i++) {
            y_data.push(data[i][field_y])
            x_data.push(data[i][field_x] + '月')
        }
    } catch (e) {
        x_data = []
        y_data = []
    }

    return {
        x_data,
        y_data
    }

}
